package cn.com.fssg.platform.config;

public class DoubleVO<T1, T2> {
    T1 one;
    T2 two;

    public DoubleVO() {
    }

    public DoubleVO(T1 one, T2 two) {
        this.one = one;
        this.two = two;
    }

    public T1 getOne() {
        return this.one;
    }

    public T2 getTwo() {
        return this.two;
    }

    public void setOne(final T1 one) {
        this.one = one;
    }

    public void setTwo(final T2 two) {
        this.two = two;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof DoubleVO)) {
            return false;
        } else {
            DoubleVO<?, ?> other = (DoubleVO)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$one = this.getOne();
                Object other$one = other.getOne();
                if (this$one == null) {
                    if (other$one != null) {
                        return false;
                    }
                } else if (!this$one.equals(other$one)) {
                    return false;
                }

                Object this$two = this.getTwo();
                Object other$two = other.getTwo();
                if (this$two == null) {
                    if (other$two != null) {
                        return false;
                    }
                } else if (!this$two.equals(other$two)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof DoubleVO;
    }

    public int hashCode() {
        int PRIME = 1;
        int result = 1;
        Object $one = this.getOne();
        result = result * 59 + ($one == null ? 43 : $one.hashCode());
        Object $two = this.getTwo();
        result = result * 59 + ($two == null ? 43 : $two.hashCode());
        return result;
    }

    public String toString() {
        return "DoubleVO(one=" + this.getOne() + ", two=" + this.getTwo() + ")";
    }
}